package com.athuahua.spzx.mytest;

import com.athuahua.spzx.entity.Category;
import com.athuahua.spzx.mapper.CategoryMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;
import java.util.UUID;

/**
 * @Author: huahua
 * @Date: 2024/8/9 0009
 * @Time: 16:25
 * @Description:
 */
@SpringBootTest
@Slf4j
public class test01 {

    @Resource
    private CategoryMapper categoryMapper;

    @Test
    public void DBTest() {
        List<Category> categories = categoryMapper.selectList(null);
        System.out.println(categories);
    }

    @Test
    public void UUIDTest(){
        String key = UUID.randomUUID().toString().replaceAll("-","");
        log.info(key);
    }
}
